<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/hr/staff_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/hrdiner/diner_editEntity.shtml">
		<input type="hidden" class="form-control checkacc" value="${meal.id}"
			name="mealFormMap.id" id="id">
		<section class="panel panel-default">
			<div class="panel-body">
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">工号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " 
						  value="${staff.job_number}" readonly="true" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">姓名</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " 
						placeholder="请输入姓名" name="staffFormMap.name" value="${staff.name}" readonly="true">
				</div>
			</div>
				<div class="form-group">
				<label class="col-sm-3 control-label">餐数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control countNumber" 
						placeholder="请输入餐数" name="mealFormMap.number" value="${meal.number}">
				</div>
			</div>
						<div class="form-group">
				<label class="col-sm-3 control-label">单价</label>
				<div class="col-sm-9">
					<input type="text" class="form-control oneMoney"  
						placeholder="请输入扣除金额"  value="">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">扣除金额</label>
				<div class="col-sm-9">
					<input type="text" class="form-control countMoney" 
						placeholder="请输入扣除金额" name="mealFormMap.money" readonly value="${meal.money}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-9">
				<input type="text" class="form-control " 
						placeholder="请输入备注" name="mealFormMap.remake" value="${meal.remake}">
				</div>
			</div>
				<div class="line line-dashed line-lg pull-in"></div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
	</section>
	</form>	
	<script src="/static/build/layui.js"></script>
<script type="text/javascript">
$(function(){
	$(".countNumber").change(function(){
		$(".countMoney").val($(this).val()*$(".oneMoney").val());
	})
})
$(function(){
	$(".oneMoney").change(function(){
		$(".countMoney").val($(this).val()*$(".countNumber").val());
	})
})
</script>
</body>
</html>